package org.spring.springboot.dubbo;

import com.alibaba.dubbo.config.annotation.Reference;
import org.spring.springboot.domain.User;
import org.springframework.stereotype.Component;

/**
 * @描述:
 * @创建人： liuZhiBo
 * @创建时间：2017/10/2713:57
 * @修改人： liuzhibo
 * @修改时间：2017/10/2713:57
 * @修改备注：
 */
@Component
public class UserDubboConsumerService {

    @Reference(version = "1.0.0")
    UserDubboService userDubboService;

    public void prinrUserInfo() {
        String userName = "冉丽娟";
        User user = userDubboService.findUserByName(userName);
        System.out.printf(user.toString());
    }
}
